package 强化训练;

import java.util.Scanner;

public class day20字符串反转 {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        StringBuilder sb = new StringBuilder(sc.next().toLowerCase());
        System.out.println(sb.reverse().toString());
    }
}
